﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Comment.ascx.cs" Inherits="EKECMS.Controls.Comment" %>
<div class="ecomment" style="margin-bottom:10px;">
<h1>&nbsp;↓&nbsp;评论信息</h1>
<asp:Repeater id="RepList" runat="server">
<itemtemplate>
<dl>
<dt>&nbsp;↑&nbsp;Name:&nbsp;<%# Eval("nick").ToString()%>&nbsp;&nbsp;Time:&nbsp;<%# Eval("addTime","{0:yyyy-MM-dd HH:mm:ss}")%></dt>
<dd><span class="msgico">&nbsp;</span><%# Eval("nr").ToString()%>
<%# Eval("RE").ToString().Length > 0 ? "<br><br>管理员回复：" + Eval("RE").ToString() : "" %>
</dd>
</dl>
<hr />
</itemtemplate>
</asp:Repeater>	
</div>


<div id="pages" style="margin-bottom:8px;"><ev:ePageControl ID="ePager1" PageSize="10" PageNum="9" runat="server" /></div>

<asp:Literal ID="LitNoMsg" runat="server" />

<div class="ecomment" style="margin-bottom:10px;clear:both;">
<h1>&nbsp;↑&nbsp;发表评论</h1>
 <%if(user.Logined || 1==1){%>
<form name="frmcomment" id="frmcomment" method="post" action="">
<input name="act" type="hidden" id="act" value="save">
<input name="id" type="hidden" id="id" value="<%=id%>">
<ul>
<li><label><span class="en">Name </span> 您的网名：</label><input name="f1" type="text" id="f1" class="txtinput" value="<%=user["name"]%>" onfocusa="this.blur();" onmousedowna="this.blur();" notnull="true" fieldname="您的网名" style="width:180px;color:#666;margin-top:5px;">&nbsp;<font color="#FF0000">*</font><%if(1==1){%><input name="nm" type="checkbox" id="nm" value="0" onClick="set(this);"> <label for="nm" style="color:#666666;width:auto;">匿名发表</label><%}%></li>
<li><label><span class="en">Email </span> 电子邮件：</label><input name="f2" type="text" id="f2" class="txtinput" value="" notnull="true" fieldname="电子邮件" style="width:180px;color:#666;margin-top:5px;"></li>
<li><label for="content"><span class="en">Comment </span>评论内容：</label><textarea name="f3" cols="60" rows="4" id="f3" class="txtinput" notnull="true" fieldname="评论内容" style="margin-top:5px;margin-bottom:5px;height:60px;"></textarea>&nbsp;<font color="#FF0000">*</font></li>
<li style="line-height:20px;"><label>&nbsp;</label>评论内容不能超过150个字符。</li>
<li><label><span class="en">Auth Code </span> 验证码：</label><input name="yzm" type="text" id="yzm" maxlength="4" class="txtinput" notnull="true" fieldname="验证码" style="width:50px;margin-top:5px;" onFocus="getrnd();">&nbsp;<font color="#FF0000">*</font>&nbsp;&nbsp;<img id="rndpic" align="absmiddle" onclick="getrnd();" height="18" src="images/none.gif" width="45" style="cursor:pointer;margin-top:8px;"></li>
<li><label>&nbsp;</label><input type="submit" name="Submit" value=""  class="btn"></li>
<li style="line-height:35px;"><label>&nbsp;</label>所有评论只代表网友个人观点，不代表本站观点。请各位遵纪守法并注意语言文明。</li>
</ul>
</form>
<%}else{%>
<div style="margin:20px;text-align:center;"><a href="Login.aspx?fromURL=<%= HttpUtility.UrlEncode(Request.Url.PathAndQuery)%>">登录</a>后进行评论!</div>
<%}%>
</div>